// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '配方参数基础',
        name: 'process_baseparams',
        newTabEdit: false,
        url: "/process_baseparams/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"Name":"","GroupName":"","SetVal":"","Deviation":"","Unit":""};
    const editFormOptions = [[{"title":"名称","required":true,"field":"Name"},
                               {"dataKey":"配方分组","data":[],"title":"分组","required":true,"field":"GroupName","type":"select"}],
                              [{"title":"标准值","required":true,"field":"SetVal","type":"decimal"},
                               {"title":"误差范围","required":true,"field":"Deviation","type":"decimal"},
                               {"dataKey":"参数单位","data":[],"title":"单位","required":true,"field":"Unit","type":"select"}]];
    const searchFormFields = {"Name":""};
    const searchFormOptions = [[{"title":"名称","field":"Name"}]];
    const columns = [{field:'Id',title:'Id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'Name',title:'名称',type:'string',width:120,require:true,align:'left'},
                       {field:'relateDeivceCode',title:'设备名称',type:'string',width:120,hidden:true,align:'left'},
                       {field:'SetVal',title:'标准值',type:'decimal',width:110,require:true,align:'left'},
                       {field:'Deviation',title:'误差范围',type:'decimal',width:110,require:true,align:'left'},
                       {field:'Unit',title:'单位',type:'string',bind:{ key:'参数单位',data:[]},width:110,require:true,align:'left'},
                       {field:'GroupName',title:'分组',type:'string',bind:{ key:'配方分组',data:[]},width:110,require:true,align:'left'},
                       {field:'UpdateUser',title:'更新用户',type:'string',width:120,require:true,align:'left'},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}